{% load mptt_tags %}

{% recursetree categories %}
    <li>
        <a href="{{ node.get_absolute_url }}">{{ node }}</a>
        {% if not node.is_leaf_node %}
            <ul class="children">
                {{ children }}
            </ul>
        {% endif %}
    </li>
{% endrecursetree %}
